﻿<Window x:Class="Hisaab.Windows.Client.View.WindowDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Common="clr-namespace:Hisaab.Windows.Common;assembly=Hisaab.Windows.Common"
        Title="{Binding Title}"
        SizeToContent="WidthAndHeight"
        ShowInTaskbar="False"
        Icon ="/Images/app.ico"
        Common:DialogCloser.DialogResult="{Binding DialogResult}"
        ResizeMode="{Binding ResizeMode}"
        WindowStyle="{Binding WindowStyle}"
        x:Name="mainFrm">
    <StackPanel >
        <Common:ExtendedBinding Source="{Binding WindowStartupLocation,Mode=TwoWay}"
              Target="{Binding ElementName=mainFrm,Path=WindowStartupLocation,Mode=TwoWay}"
              />

        <ContentPresenter x:Name="DialogPresenter"
                      Content="{Binding .}"
                      ContentTemplateSelector="{StaticResource hisaabDataTemplateSelector}"/>
    </StackPanel>
</Window>